/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commons.lang.arrays;

import org.apache.commons.lang.ArrayUtils;

/**
 *
 * @author WangShuai
 */
public class Demo1 {

    public static void main(String[] args) {
        long[] array = {1, 3, 2, 3, 5, 6};
        long[] reversed = ArrayUtils.clone(array); //克隆数组，与JDK的clone方法不同的是，前者能够处理null
        ArrayUtils.reverse(reversed);  //在当前数组上进行操作，进行反转
        System.out.println("Original: " + ArrayUtils.toString(array));
        System.out.println("Reversed: " + ArrayUtils.toString(reversed));


        
    }
}
